package com.hm.service.framework.crypto;

import java.util.HashMap;
import java.util.Map;

/**
 * 密钥常量
 */
public interface KeyConstant {

    //定期升级密钥版本号
    String SecretKeyVersion = "V100";

    /**
     * 根据版本号对应不同的公钥
     */
    Map<String, String> PublicSecretKeyMap = new HashMap<>() {
        {
            put("V100", "qHTlHk7D3Phq7T9hXDilvL7D3Phm7P68");
            put("V101", "AHTlHk7D3Phq7T9hXDilvL7D3Phm7P70");
        }
    };

    /**
     * 根据版本号对应不同的密钥
     */
    Map<String, String> PrivateSecretKeyMap = new HashMap<>() {
        {
            put("V100", "ARilvk7D3Phq766hQHilvk7D3PhqU57h");
            put("V101", "QHilvk7D3Phq766hQHilvk7D3Phq766h");
        }
    };

    /**
     * 加解密session的key
     * SecretKey:密钥
     * ivParameter：偏移量
     */
    String SessionSecretKey = "QHilvk7D3Phq766hQHilvk7D3Phq766h";
    String SessionIvParameter = "AXi9vk7D3Phq766h";

    /**
     * 加解密Token的key
     * SecretKey:密钥
     * ivParameter：偏移量
     */
    String TokenSecretKey = "AGjcvk7D3Phq766hQHilvk7D3Phq766h";
    String TokenIvParameter = "90iDvk7D3Phq70Ph";

}
